<!DOCTYPE html>
<html>

<head>
    <title>洁净一百是国内较早专业从事集家电清洗{$site_info.site_name|default=''}</title>
    <meta name="keywords" content="{$site_info.site_seo_keywords|default=''}" />
    <meta name="description" content="{$site_info.site_seo_description|default=''}">
    <include file="public@head" />
    <link href="__TMPL__/public/assets/css/product.css" rel="stylesheet">
    <link href="__TMPL__/public/assets/css/swiper.min.css" rel="stylesheet">
    <script src="__TMPL__/public/assets/js/swiper.min.js"></script>
    <style>
        .imgyi {
            transition: all 2s ease 0s;
        }

        /* transition 别放hover里，放到img里，这样移入移出一样缓慢，不然只对hover移上去有缓慢效果 */
        .imgyi:hover {
            transform: scale(0.9)
                /*transition: all 2s ease-in-out 0s;*/
        }

        .swiper-container {
            width: 100%;
            height: 100%;
        }

        .swiper-container-shuiping {
            width: 100%;
            height: 100%;
            position: relative;
        }

        .swiper-slide {
            text-align: center;
            font-size: 18px;
            background: #fff;

            /* Center slide text vertically */
            display: -webkit-box;
            display: -ms-flexbox;
            display: -webkit-flex;
            display: flex;
            -webkit-box-pack: center;
            -ms-flex-pack: center;
            -webkit-justify-content: center;
            justify-content: center;
            -webkit-box-align: center;
            -ms-flex-align: center;
            -webkit-align-items: center;
            align-items: center;
        }

        .weizhi a {
            text-decoration: none;
        }

        .glyphicon-home {
            color: #666;
        }

        .glyphicon-home:hover {
            color: #c51b1b;
        }

        .qro {
            font-size: 15px;
            color: #666;
        }

        .qro:hover {
            color: #c51b1b;
        }

        .proje {
            color: #666;
            font-size: 15px;
        }

        .proje:hover {
            color: #c51b1b;
        }

        .hyfxh4 {
            font-size: 12px;
            text-align: center;
            background: #585858;
            padding-top: 10px;
            padding-bottom: 10px;
            margin-top: 0px;
            margin-bottom: 0px;
            font-family: inherit;
            font-weight: 500;
            color: #fff;
        }

        .cjwj span:hover,
        .cjwj p:hover {
            color: #c51b1b;
        }

        .glyphicon-plus-sign {
            font-size: 75px;
            color: #b8b4b3;
        }

        .cjwj p {
            font-size: 21px;
            letter-spacing: 2px;
            text-align: center;
            color: #b8b4b3;
        }

        img {
            margin: 0;
            padding: 0;
            height: auto;
            border: 0;
            max-width: 100%;
            vertical-align: middle;
        }

        .right_caini div {
            background-color: #ffffff;
        }

        a.mask {
            position: relative;
            display: block;
        }

        a.mask:hover:after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            width: 100%;
            background: rgba(0, 0, 0, .5) url('__TMPL__/public/assets/images/video.png') no-repeat center;
        }
    </style>
    <hook name="before_head_end" />
</head>

<body style="background-color:#ebebeb;">
    <!--轮播图开始-->
    <div class="swiper-container">
        <div class="swiper-wrapper">
            <div class="swiper-slide"><img src="__TMPL__/public/assets/images/banner.png" alt=""></div>
            <div class="swiper-slide"><img src="__TMPL__/public/assets/images/banner2.jpg" alt=""></div>
            <div class="swiper-slide"><img src="__TMPL__/public/assets/images/banner3.jpg" alt=""></div>
        </div>
        <!-- Add Arrows -->
        <div class="swiper-button-next"></div>
        <div class="swiper-button-prev"></div>
    </div>
    <!--轮播图结束-->

    <div class="container weizhi" style="height:50px;line-height:50px;padding-left:0px;">
        <a href="/"><span class="glyphicon glyphicon-home" aria-hidden="true"></span></a>
        <span class="glyphicon glyphicon-menu-right" aria-hidden="true" style="color: #666;"></span>
        <a href="{:url('portal/project/projectlist',['post_id'=> $cotegory['id']])}"><strong
                class="proje">{$cotegory.name}</strong></a>
        <span class="glyphicon glyphicon-menu-right" aria-hidden="true" style="color: #666;"></span>
        <a href="{:url('portal/project/seemore')}?post_id={$cotegory.id}&layer={$artData.layer}"><strong
                class="qro">{$layerName}</strong></a>
        <span class="glyphicon glyphicon-menu-right" aria-hidden="true" style="color: #666;"></span>
        <strong style="font-size: 15px;color: #666;">{$artData.title}......</strong>
    </div>
    <!--详细内容开始-->
    <div class="container">
        <div class="row">
            <div class="col-md-8" style="padding-left:0px;">
                <div class="col-md-12"
                    style="padding-left:0px;padding-right:0px;background: #fff;padding:20px 0px 0px 0px">
                    <if $artData.type==1>
                        <div style="text-align: center;padding-bottom:20px;border-bottom: 2px solid #ddd;">
                            <img src="/upload/{$artData.pic}" style="width:720px;height:400px">
                        </div>
                        <else />
                        <div style="text-align: center;padding-bottom:20px;border-bottom: 2px solid #ddd;">
                            <embed style="width:720px;height:400px" src="{$artData.video}" allowFullScreen='true'
                                quality='high' align='middle' allowScriptAccess='always'
                                type='application/x-shockwave-flash'>
                        </div>
                    </if>
                    <div style="height:120px;">
                        <div class="col-md-2"
                            style="height:120px;line-height:120px;text-align: center;border-right: 1px solid #ddd;">
                            <img src="__TMPL__/public/assets/images/touxiang.png"></div>
                        <div class="col-md-10" style="height:120px;padding:20px 0px 0px 20px">
                            <h4 style="font-size: 20px;">{$artData.title}......</h4>
                            <p>
                                <span style="padding-right:50px;">
                                    <img src="__TMPL__/public/assets/images/author.png">&nbsp;{$artData.author}</span>
                                <span style="padding-right:50px;"
                                    data-url="{:url('editzan')}?id={:request()->param('id')}" class="ajax-zan">
                                    <if $is_zan>
                                        <img data-no-img='__TMPL__/public/assets/images/love-icon.png'
                                            data-yes-img='__TMPL__/public/assets/images/love.png'
                                            src="__TMPL__/public/assets/images/love.png">
                                        <else />
                                        <img src="__TMPL__/public/assets/images/love-icon.png"
                                            data-no-img='__TMPL__/public/assets/images/love-icon.png'
                                            data-yes-img='__TMPL__/public/assets/images/love.png'>
                                    </if>

                                    &nbsp;<span>{$artData.zan}</span>
                                </span>
                                <span style="padding-right:50px;"><img
                                        src="__TMPL__/public/assets/images/see.png">&nbsp;{$artData.view}</span>
                                <span><a style="color:#333" href="{$artData.appendix}"><img
                                            src="__TMPL__/public/assets/images/download.png">&nbsp;下载</a></span>
                            </p>
                        </div>

                    </div>
                </div>
                <div class="col-md-12" style="height:20px;">&nbsp;</div>
                <div class="col-md-12"
                    style="padding-top:20px;background: #fff;padding-left:20px;padding-right:20px;padding-bottom:20px;">
                    <div style="height:300px;">
                        <p style="font-size:20px;padding-bottom:20px;border-bottom: 2px solid #ddd;">描&nbsp;述</p>
                        {$artData.description|htmlspecialchars_decode}
                        <!-- <div class="col-md-12" style="padding-top:27px;text-align: center;">
                            <a href="{:url('portal/Project/seemore')}"><img  src=__TMPL__/public/assets/images/chakantu.png> </a> 
                        </div>  -->
                    </div>
                </div>
                <div class="col-md-12" style="height:20px;">&nbsp;</div>
                <!--其它资料开始-->
                <div class="col-md-12" style="height:760px;background-color:#ffffff;">
                    <div style="height:90px;line-height: 90px;border-bottom: 2px solid #bebebe;">
                        <img style="float:left;padding:34px 30px 0px 0px;" src="__TMPL__/public/assets/images/qita.png">
                        <h3 style="float:left;padding:10px 20px 0px 0px;font-size:25px;">其它资料</h3>
                        <h3 style="float:left;font-size:15px;padding-top: 18px">RELEVANT DATA</h3>

                    </div>
                    <div style="height:30px;">&nbsp;</div>
                    <div class="row">
                        <foreach $other as $val>
                            <div class="col-md-6">
                                <div class="thumbnail" style="height:300px;padding:0px;">
                                    <a class="mask" href="{:url('portal/Project/details')}?id={$val.id}" style="
                                        display: block;
                                        height: 220px;
                                        overflow: hidden;
                                    "><img src="/upload/{$val.pic}"></a>
                                    <div class="caption">
                                        <h4 style="font-size: 15px;text-align: center;"><a
                                                href="{:url('portal/Project/details')}?id={$val.id}">{$val.title}......</a>
                                        </h4>
                                        <p class="col-md-4"><img
                                                src="__TMPL__/public/assets/images/author.png">&nbsp;{$val.author|substr=0,6}
                                        </p>
                                        <p style="cursor: pointer;" class="col-md-4"
                                            data-url="{:url('editzan')}?id={$val.id}"><img
                                                src="__TMPL__/public/assets/images/love-icon.png">&nbsp;<span>{$val.zan}</span>
                                        </p>
                                        <p class="col-md-4"><img
                                                src="__TMPL__/public/assets/images/see.png">&nbsp;{$val.view}</p>
                                    </div>
                                </div>
                            </div>
                        </foreach>
                    </div>
                </div>
                <!--其它资料结束-->
                <div class="col-md-12" style="height:20px;">&nbsp;</div>
                <!--评论开始-->
                <div class="col-md-12" style="height:760px;background-color:#ffffff;overflow: auto">
                    <div style="height:90px;line-height: 90px;border-bottom: 2px solid #bebebe;">
                        <img style="float:left;padding:34px 30px 0px 0px;"
                            src="__TMPL__/public/assets/images/comment.png">
                        <h3 style="float:left;padding:10px 20px 0px 0px;font-size:25px;">评论</h3>
                        <h3 style="float:left;font-size:15px;padding-top: 18px">COMMENT</h3>
                    </div>
                    <div style="height:20px;">&nbsp;</div>
                    <div style="border: 1px solid #ddd;height:120px;">
                        <div class="col-md-2"
                            style="line-height:120px;text-align: center;border-right: 1px solid #ddd;"><img
                                src="__TMPL__/public/assets/images/touxiang.png"></div>
                        <div class="col-md-10" style="padding:20px 20px 0px 20px">
                            <form action="{:url('message')}?id={:request()->param('id')}" method="POST">
                                <textarea id="textarea" class="form-control " rows="1" name="content"
                                    style="width:100%;clear: both;border-radius: 5px;"
                                    placeholder="想说点什么......"></textarea>
                                <p style="padding-top:20px;"><button class="ajax-form message-button"
                                        style="float: right;height:20px;width:80px;border:0;border-radius: 5px;">评论</button>
                                </p>
                            </form>
                        </div>
                    </div>
                    <div style="padding:40px 0px 10px 0px;">
                        <span style="padding-left:28px;">全部评论 <small
                                style="padding-left:5px;">{$artData.messageCount}</small></span>
                    </div>
                    <foreach $message as $val>
                        <div style="border-top: 1px solid #ddd;border-bottom: 1px solid #ddd;height:120px;">
                            <div class="col-md-2" style="line-height:120px;text-align: center;"><img
                                    src="__TMPL__/public/assets/images/touxiang.png"></div>
                            <div class="col-md-10" style="padding:20px 20px 0px 20px">
                                <p>{$val.user_name}</p>
                                <p style="clear: both;">{$val.content}</p>
                                <p style="float: right;cursor: pointer;" class="ajax-zan"
                                    data-url="{:url('messagezan')}?id={$val.id}">
                                    <if $val.is_zan>
                                        <img data-no-img='__TMPL__/public/assets/images/dianzhan.png'
                                            data-yes-img='__TMPL__/public/assets/images/THUMBS-UP.png'
                                            src="__TMPL__/public/assets/images/THUMBS-UP.png">
                                        <else />
                                        <img src="__TMPL__/public/assets/images/dianzhan.png"
                                            data-no-img='__TMPL__/public/assets/images/dianzhan.png'
                                            data-yes-img='__TMPL__/public/assets/images/THUMBS-UP.png'>
                                    </if>&nbsp; <span style="vertical-align: sub;">{$val.zan}</span>
                                </p>
                            </div>
                        </div>
                    </foreach>
                    <!-- <div class="col-md-12" style="padding-top:27px;text-align: center;">
                                    <a href="{:url('portal/Project/seemore')}"><img src=__TMPL__/public/assets/images/chakantu.png> </a> 
                                </div> -->
                </div>
                <!--评论结束-->

            </div>

            <div class="col-md-4 right_caini">
                <div class="col-md-12" style="padding:15px 15px 15px 15px;">
                    <p style="font-size:20px;padding-bottom:20px ;border-bottom: 2px solid #bebebe;">猜你喜欢</p>
                </div>
                <foreach $artRand as $val>
                    <div class="col-md-12">
                        <div class="thumbnail" style="height:300px;padding:0px;">
                            <a class="mask" href="{:url('portal/Project/details')}?id={$val.id}"><img
                                    src="/upload/{$val.pic}" style="height:215px"></a>
                            <div class="caption">
                                <h4 style="font-size: 15px;text-align: center;"><a
                                        href="{:url('portal/Project/details')}?id={$val.id}">{$val.title}......</a>
                                </h4>
                                <p class="col-md-4"><span><img
                                            src="__TMPL__/public/assets/images/author.png">&nbsp;{$val.author|substr=0,6}
                                </p>
                                <p class="col-md-4" style="cursor: pointer" data-url="{:url('editzan')}?id={$val.id}">
                                    <img src="__TMPL__/public/assets/images/love-icon.png">&nbsp;<span>{$val.zan}</span>
                                </p>
                                <p class="col-md-4"><img src="__TMPL__/public/assets/images/see.png">&nbsp;{$val.view}
                                </p>
                            </div>
                        </div>
                    </div>
                </foreach>
            </div>
        </div>
    </div>
    <!--详细内容结束-->

    <div style="height:50px;">&nbsp;</div>

    <!--底部开始-->
    <div class="container-fluid" style="padding:0px;margin: 0 auto;text-align: center;">
        <div class="col-xs-12 col-md-12" style="padding:0px;"><img style="width: 100%;"
                src="__TMPL__/public/assets/images/footer.png" alt=""></div>
    </div>
    <!--底部结束-->
</body>
<script>
    var swiper = new Swiper('.swiper-container', {
        navigation: {
            nextEl: '.swiper-button-next',
            prevEl: '.swiper-button-prev',
        },
    });

    var swipers = new Swiper('.swiper-container-shuiping', {
        autoplay: {
            disableOnInteraction: false,
        },
        loop: true,
        slidesPerView: 5,
        spaceBetween: 0,
        pagination: {
            el: '.swiper-pagination',
            clickable: true,
        },
        navigation: {
            nextEl: '.swiper-button-next',
            prevEl: '.swiper-button-prev',
        },
    });
    $('#textarea').on('keyup', function () {
        if ($(this).val() != '') {
            $('.message-button').css({
                'backgroundColor': '#ba1718',
                'color': '#fff'
            });
        } else {
            $('.message-button').css({
                'backgroundColor': 'buttonface',
                'color': "#000"
            });
        }
    })
    $('.ajax-form').on('click', function () {
        var form = $(this).parents('form');
        var url = $(form).attr('action');
        var data = $(form).serialize();
        $.ajax({
            url: url,
            data: data,
            method: 'post',
            success: function (res) {
                if (res.code === 1) {
                    window.location.href = res.url
                }
                layer.msg(res.msg);
            }
        })
        return false;
    })
    $('.ajax-zan').on('click', function () {
        var url = $(this).attr('data-url');
        var noPic = $(this).find('img').attr('data-no-img'),
            yesPic = $(this).find('img').attr('data-yes-img')
        var thar = this;
        $.ajax({
            url: url,
            type: 'POST',
            success: function (res) {
                if (res.code == 1) {
                    $(thar).find('span').text(res.data);
                }
                if (res.msg.indexOf('取消') === -1) {
                    $(thar).find('img').attr('src', yesPic);
                } else {
                    $(thar).find('img').attr('src', noPic);
                }
                layer.msg(res.msg);
            }
        })
    })

</script>

</html>